package com.example.shopping.authority.mapper;

import com.example.shopping.authority.entity.QuanXian;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface QuanXianMapper {
    //查询所有权限
    @Select("select * from permission")
    List<QuanXian> getMirmissionList();

    //id查询权限
    @Select("select * from permission where find_in_set(id,#{psids})")
    List<QuanXian> getMirmissionFind(@Param("psids")String psids);

}
